Report and datasource tips, best practices, and troubleshooting
Prerequisites
Overview
Sometimes, what you’re trying to achieve doesn’t work as expected. While this document isn’t exhaustive, it provides helpful troubleshooting ideas, best practices, and tips you can try based on your specific issue or goal.
Datasource foundations
Symptoms:
-
The datasource cannot be created.
-
A "datasource in use" error.
-
An error indicating that naming clashes with an unrelated component.
Cause:
Datex Studio requires globally unique reference IDs across all component types.
Fix:
Always make datasource names lowercase and prefix with:
ds_<component>_<purpose>
Example: ds_orders_getbyid
oData query builder troubleshooting
Causes:
-
The filter syntax may be invalid.
-
There is a missing condition on nullable filter.
-
Check for an OR condition in the filter not wrapped in parenthesis.
-
Filtering at the expansion level instead root-level filtering
Fix(s):
-
Best practice is to wrap all param values with correct formatter.
-
Use the "Use filter when...." option.
Causes:
-
The filter syntax may be invalid.
-
There is a missing condition on nullable filter.
Fix(s):
-
Best practice is to wrap all param values with correct formatter.
-
Use the "Use filter when...." option.
Causes:
-
The use of invalid OData syntax.
-
The use of an invalid type formatting, for example, missing quotes for strings.
-
There were case sensitivity issues (lookupCode vs LookupCode).
Fix(s):
-
Best practice is to wrap all param values with correct formatter.
-
It must generate valid OData, not Typescript.
-
Use backtick strings `...` with ${ } for interpolation.
Symptoms:
-
Parent rows return even when child is empty.
-
Expected filtering doesn’t happen.
Causes:
-
Expands == Left Join
-
They never filter parent rows.
Fix:
To filter on child entities, use ANY/ALL at the root level filter.
| 1 | orderLines/ any(ol: ol/statusID eq 3) |
Symptoms:
-
A “MaxExpandDepthExceeded” error.
-
A “Nested node expansion limit reached” error.
Cause:
-
OData expand depth exceeds environment limit (default = 5).
-
Configured in the Footprint Environment Manager so it may vary by environment.
-
Fix(s):
-
Change the root entity.
-
Reduce the depth.
-
Split into two data sources.
-
Switch to flow-based DS.
Flow-based datasource issues
Symptoms:
-
The report shows blank fields.
-
Report has grid errors.
-
The selector doesn’t load.
Cause:
Output does not match schema defined above.
Fix:
Ensure result object exactly matches DS fields.
Symptoms:
-
Only the first page loads.
-
There is an endless spinner.
-
The row refresh fails.
Cause:
-
getList not populating:
-
skip
-
top
-
totalCount
-
Fix:
Include:
| 1 | $flow.outParams.totalCount = fullResult.length |
| 2 | $flow.outParams.result = fullResult.slice($flow.inParams.skip, $flow.inParams.skip + $flow.inParams.top) |
Symptoms:
-
Selectors lose the selected record.
-
Grids refresh a row incorrectly.
Cause:
getByKeys not implemented or not using correct key list.
Fix:
| 1 | const ids = $flow.inParams.$keys; |
Return only those records.
Filters and syntax issues
Fix:
Always format values via utilities:
-
formatString
-
formatNumber
-
formatDateTime
Best Practice:
Use:
-
$utils.isDefinedTrimmed() for strings
-
$utils.isDefined() for numbers/booleans/arrays/date and time Etc.
Common mistakes:
-
Missing alias
-
Using root entity property directly
-
Wrong entity path
Correct usage example:
| 1 | orderLines/any(ol: ol/materialID eq 55) |
Group by / Transformations
Symptoms:
-
Expands are missing after grouping.
-
Fields disappear from the result.
Causes:
Group by redefines the output shape.
Fix(s):
-
All needed fields must be selected within group definition.
-
Expands must occur during grouping.
Reporting issues (Mescius reports)
Causes:
Report controls not inside a Table component.
Fix:
Wrap layout in a table detail row for multiple record display printing.
Check if:
-
Dataset name is not assigned to table.
-
Wrong DS path mapping (e.g., licensePlateID vs licensePlate) or it was renamed.
Fix Options:
-
Turn ShrinkToFit on/off .
-
Adjust CanGrow.
-
Resize table cell or text box explicitly.
Performance and reliability
Causes:
-
Expanding too many entities.
-
No filtering before grouping.
-
Returning thousands of rows unnecessarily.
Fix(s):
-
Filter early.
-
Reduce expand depth.
-
Use flow DS for custom batching.
Flow Datasources (Flow DS)
Use Flow DS when:
-
OData limits hit.
-
Complex calculations are required.
-
Data from multiple unrelated roots are needed.
| Last Updated: |
| 05/11/2026 |
